@echo off

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::                                                        ::
:: This file packages the the image files, source files,  ::
:: and the manuals to that they can be deployed and       ::
:: distributed.                                           ::
::                                                        ::
::                                                        ::
:: February//04/2011                                      ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ZIP THE FILES FOR DISTRIBUTION                         ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

if /i exist ".\DroneOS-src.zip" del /q DroneOS-src.zip
if /i exist ".\DroneOS-img.zip" del /q DroneOS-img.zip
if /i exist ".\DroneOS-man.zip" del /q DroneOS-man.zip

"..\tools\zip\zip.exe" -r QuoreOS-Src.zip ".\source"
"..\tools\zip\zip.exe" DroneOS-img.zip ".build\img\DroneOS.img"

echo.
echo.
time /t > time.txt
set /p time=<time.txt
del /q time.txt
echo Completed packaging on %DATE% at %time%
pause>nul

